<!--*******************************************************
TITLE: STAGE IG3 (creation de site web TEMASA)
DATE: 19/07/2012
AUTHOR: Sanae BASRAOUI
*******************************************************-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

	<head>
		<title>Inscription IG</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="j.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet"  type="text/css" title="Exemple" href="CSS/inscription.css"/>
		<link rel="stylesheet"  type="text/css" title="Exemple" href="css/ruban.css"/>
		<link rel="stylesheet"  type="text/css" title="Exemple" href="CSS/nav.css"/>
	</head>
	
	<body >

		<div id="bloc_page">
			<header>
				<div id="titre_principal">

					<img src="images/logo.png"  id="logo" />

				</div>

				<nav>
					<ul>
						<?php
						if (isset($_SESSION['signed_in']) && $_SESSION['signed_in']) {
							echo 'Hello <b>' . htmlentities($_SESSION['user_email']) . '</b>. Not you? <a class="item" href="logout.php">Sign out</a>';
						} else {
							echo '<a class="item" href="login.php">Sign in</a> or <a class="item" href="inscription.php">create an account</a>.';
						}
						?>

						<li>
							<a href="index.php">Accueil</a>
						</li>

						<?php
						if (isset($_SESSION['signed_in']) && $_SESSION['signed_in']) {
						?>
						<li>
							<a href="public_profile.php">My profile</a>
						</li>

						<li>
							<a href="forum/index.php">Forum</a>
						</li>
						<li>
							<a href="chat/chatrooms.php">Chat</a>
						</li>
						<?php
						} else {
						?>
						<?php
						}
						?>
					</ul>
				</nav>
			</header>
